package com.kingdee.eas.custom.rcbudget.ekingwin.www.esb.header.v1;

import java.io.Serializable;
import javax.xml.namespace.QName;
import org.apache.axis.description.ElementDesc;
import org.apache.axis.description.TypeDesc;
import org.apache.axis.encoding.Deserializer;
import org.apache.axis.encoding.Serializer;
import org.apache.axis.encoding.ser.BeanDeserializer;
import org.apache.axis.encoding.ser.BeanSerializer;

public class Header
  implements Serializable
{
  private String BIZTRANSACTIONID;
  private String COUNT;
  private String CONSUMER;
  private String SRVLEVEL;
  private String ACCOUNT;
  private String PASSWORD;
  private Object __equalsCalc = null;

  private boolean __hashCodeCalc = false;

  private static TypeDesc typeDesc = new TypeDesc(Header.class, true);

  static {
    typeDesc.setXmlType(new QName("http://www.ekingwin.com/esb/header/v1", "Header"));
    ElementDesc elemField = new ElementDesc();
    elemField.setFieldName("BIZTRANSACTIONID");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "BIZTRANSACTIONID"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("COUNT");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "COUNT"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("CONSUMER");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "CONSUMER"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("SRVLEVEL");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "SRVLEVEL"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("ACCOUNT");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "ACCOUNT"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
    elemField = new ElementDesc();
    elemField.setFieldName("PASSWORD");
    elemField.setXmlName(new QName("http://www.ekingwin.com/esb/header/v1", "PASSWORD"));
    elemField.setXmlType(new QName("http://www.w3.org/2001/XMLSchema", "string"));
    elemField.setNillable(false);
    typeDesc.addFieldDesc(elemField);
  }

  public Header()
  {
  }

  public Header(String BIZTRANSACTIONID, String COUNT, String CONSUMER, String SRVLEVEL, String ACCOUNT, String PASSWORD)
  {
    this.BIZTRANSACTIONID = BIZTRANSACTIONID;
    this.COUNT = COUNT;
    this.CONSUMER = CONSUMER;
    this.SRVLEVEL = SRVLEVEL;
    this.ACCOUNT = ACCOUNT;
    this.PASSWORD = PASSWORD;
  }

  public String getBIZTRANSACTIONID()
  {
    return this.BIZTRANSACTIONID;
  }

  public void setBIZTRANSACTIONID(String BIZTRANSACTIONID)
  {
    this.BIZTRANSACTIONID = BIZTRANSACTIONID;
  }

  public String getCOUNT()
  {
    return this.COUNT;
  }

  public void setCOUNT(String COUNT)
  {
    this.COUNT = COUNT;
  }

  public String getCONSUMER()
  {
    return this.CONSUMER;
  }

  public void setCONSUMER(String CONSUMER)
  {
    this.CONSUMER = CONSUMER;
  }

  public String getSRVLEVEL()
  {
    return this.SRVLEVEL;
  }

  public void setSRVLEVEL(String SRVLEVEL)
  {
    this.SRVLEVEL = SRVLEVEL;
  }

  public String getACCOUNT()
  {
    return this.ACCOUNT;
  }

  public void setACCOUNT(String ACCOUNT)
  {
    this.ACCOUNT = ACCOUNT;
  }

  public String getPASSWORD()
  {
    return this.PASSWORD;
  }

  public void setPASSWORD(String PASSWORD)
  {
    this.PASSWORD = PASSWORD;
  }

  public synchronized boolean equals(Object obj)
  {
    if (!(obj instanceof Header)) return false;
    Header other = (Header)obj;
    if (obj == null) return false;
    if (this == obj) return true;
    if (this.__equalsCalc != null) {
      return this.__equalsCalc == obj;
    }
    this.__equalsCalc = obj;

    boolean _equals = 
      ((this.BIZTRANSACTIONID == null) && (other.getBIZTRANSACTIONID() == null)) || (
      (this.BIZTRANSACTIONID != null) && 
      (this.BIZTRANSACTIONID.equals(other.getBIZTRANSACTIONID())) && (
      ((this.COUNT == null) && (other.getCOUNT() == null)) || (
      (this.COUNT != null) && 
      (this.COUNT.equals(other.getCOUNT())) && (
      ((this.CONSUMER == null) && (other.getCONSUMER() == null)) || (
      (this.CONSUMER != null) && 
      (this.CONSUMER.equals(other.getCONSUMER())) && (
      ((this.SRVLEVEL == null) && (other.getSRVLEVEL() == null)) || (
      (this.SRVLEVEL != null) && 
      (this.SRVLEVEL.equals(other.getSRVLEVEL())) && (
      ((this.ACCOUNT == null) && (other.getACCOUNT() == null)) || (
      (this.ACCOUNT != null) && 
      (this.ACCOUNT.equals(other.getACCOUNT())) && (
      ((this.PASSWORD == null) && (other.getPASSWORD() == null)) || (
      (this.PASSWORD != null) && 
      (this.PASSWORD.equals(other.getPASSWORD())))))))))))));
    this.__equalsCalc = null;
    return _equals;
  }

  public synchronized int hashCode()
  {
    if (this.__hashCodeCalc) {
      return 0;
    }
    this.__hashCodeCalc = true;
    int _hashCode = 1;
    if (getBIZTRANSACTIONID() != null) {
      _hashCode += getBIZTRANSACTIONID().hashCode();
    }
    if (getCOUNT() != null) {
      _hashCode += getCOUNT().hashCode();
    }
    if (getCONSUMER() != null) {
      _hashCode += getCONSUMER().hashCode();
    }
    if (getSRVLEVEL() != null) {
      _hashCode += getSRVLEVEL().hashCode();
    }
    if (getACCOUNT() != null) {
      _hashCode += getACCOUNT().hashCode();
    }
    if (getPASSWORD() != null) {
      _hashCode += getPASSWORD().hashCode();
    }
    this.__hashCodeCalc = false;
    return _hashCode;
  }

  public static TypeDesc getTypeDesc()
  {
    return typeDesc;
  }

  public static Serializer getSerializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanSerializer(
      _javaType, _xmlType, typeDesc);
  }

  public static Deserializer getDeserializer(String mechType, Class _javaType, QName _xmlType)
  {
    return 
      new BeanDeserializer(
      _javaType, _xmlType, typeDesc);
  }
}